<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>while循环</title>
	<script>
		//变量初始化
		var n = 1;
		while(n<=5){
			console.log(n);
			//步长语句			
			n++;
		}
	</script>
</head>
<body>
	
</body>
</html>